<template>
  <header>
    <div class="electric"></div>
    <div class="search">
      <img
        @click="$router.push('/')"
        src="https://lanhu-dds-backend.oss-cn-beijing.aliyuncs.com/merge_image/imgs/de6052b261c140ce938d0dff4de5f07b_mergeImage.png"
        alt=""
      />
      <!-- <div class="fanhui"><back></back></div> -->
      <span>婚庆服务</span>
      <img
        src="https://lanhu.oss-cn-beijing.aliyuncs.com/ps793co14fjqdjnrs997q5psnw2urlgi9pac110a2cb-c92b-4e89-9f02-8ed5c033d5d1"
        alt=""
      />
    </div>
  </header>
  <div class="zan"></div>
  <div class="main">
    <van-swipe class="swipper" :autoplay="3000" lazy-render>
      <van-swipe-item v-for="image in images" :key="image">
        <img :src="image" />
      </van-swipe-item>
    </van-swipe>
    <div class="strategy">
      <p>婚礼攻略<span>更多婚礼推荐</span></p>
      <div class="content">
        <div class="contentbox">
          <img
            src="https://lanhu.oss-cn-beijing.aliyuncs.com/psqr1kdm529kmbu13d7inpl4c81sa1g9xkca3cfcac2-211b-43a4-b28e-c3c26f0d9299"
            alt=""
          />
          <div class="contentbtm">
            <p>不敢在老家办婚礼？</p>
            <p>逆袭！婚礼大改造！</p>
          </div>
        </div>
        <div class="contentbox">
          <img src="" alt="" />
          <div class="contentbtm">
            <p>不敢在老家办婚礼？</p>
            <p>逆袭！婚礼大改造！</p>
          </div>
        </div>
        <div></div>
      </div>
    </div>
    <van-tabs class="tab" v-model:active="activeName">
      <van-tab title="案例推荐" name="a"
        ><div class="case">
          <div class="caseimg">
            <img
              src="https://lanhu.oss-cn-beijing.aliyuncs.com/psgpfz5ux8mnu1gr2v0cwsjqavr363l5taj1dfff39f-a5cf-412f-927b-d6ff8c873284"
              alt=""
            />
          </div>
          <div class="casebtm">
            <p>琴瑟在御莫不静好</p>
            <p>
              <span>室内婚礼</span><span>主题婚礼</span
              ><span>蜜柚国际创意婚社</span>
            </p>
          </div>
          <div class="morecase">
            <p>更多案例</p>
          </div>
        </div>
      </van-tab>
      <van-tab title="严选品牌" name="b">内容 2</van-tab>
      <van-tab title="热门套餐" name="c">内容 3</van-tab>
    </van-tabs>
  </div>
</template>

<script>
export default {
  setup() {
    const images = [
      "https://lanhu.oss-cn-beijing.aliyuncs.com/psp7xyloiitopyved57xkbcb95vq75mrbz5e6c4cc5-a083-4508-92cd-d89d45b47405",
"https://lanhu.oss-cn-beijing.aliyuncs.com/psw10yqqh3omxdbnapws5eg2q4zoh2nf4098522c-85bd-49ac-bbbb-72f7b23196ab",
      "https://lanhu.oss-cn-beijing.aliyuncs.com/psgpfz5ux8mnu1gr2v0cwsjqavr363l5taj1dfff39f-a5cf-412f-927b-d6ff8c873284"
      
    ];
    return { images };
    const activeName = ref("a");
    return { activeName };
  },
};
</script>

<style lang="scss" scoped>
.zan {
  padding: 0.3rem 0 0.2rem 0;
  width: 100%;
  height: 1.71rem;
}
.fanhui {
  width: 0.2rem;
  height: 0.32rem;
}
header {
  position: fixed;
  top: 0;
  z-index: 3;
  padding: 0.3rem 0 0.2rem 0;
  width: 100%;
  box-sizing: border-box;
  height: 1.71rem;
  background-image: url(https://lanhu.oss-cn-beijing.aliyuncs.com/psmiuf20ac61w1raw4hxzf974ltkym54s211e8840-8a8c-47cc-a578-5a27f9e829a1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  .electric {
    width: 6.5rem;
    height: 0.26rem;
    margin: 0 auto;
    // background-image: url(https://lanhu.oss-cn-beijing.aliyuncs.com/ps8pq43wjp5hgtaeal2jrdmufnm83qpodb47ef9be9-1c0e-427a-bff3-d8ded2d36e6b);
    background-size: 6.51rem 0.26rem;
    background-repeat: no-repeat;
  }
  .search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.2rem;
    height: 0.4rem;
    span {
      font-size: 0.3rem;
    }
    img {
      &:nth-child(1) {
        width: 0.2rem;
        height: 0.32rem;
      }
      &:nth-child(2) {
        width: 1.15rem;
        height: 0.28rem;
      }
      &:nth-child(3) {
        width: 0.28rem;
        height: 0.28rem;
      }
    }
  }
}
.main {
  width: 6.9rem;
  margin: 0 auto;
  .swipper {
    width: 100%;
    height: 2.8rem;
    img {
      width: 100%;
      height: 2.8rem;
    }
  }
  .strategy {
    margin-top: 0.84rem;
    P {
      font-size: 0.28rem;
      font-family: PingFang SC;
      font-weight: 500;
      color: #333333;
      line-height: 0.3rem;
      span {
        font-size: 0.19rem;
        float: right;
        color: #999999;
      }
    }
    .content {
      margin-top: 0.41rem;
      display: flex;
      justify-content: space-between;
      .contentbox {
        img {
          width: 100%;
        }
        position: relative;
        width: 3.3rem;
        height: 2.6rem;
        border-radius: 0.1rem 0.1rem 0 0;
        background-color: rgb(218, 161, 161);
        .contentbtm {
          display: flex;
          flex-direction: column;
          justify-content: space-around;
          width: 100%;
          height: 0.7rem;
          background-color: rgba(24, 22, 22, 0.112);
          position: absolute;
          bottom: 0;
          text-align: center;
          p {
            &:nth-child(1) {
              font-size: 0.24rem;
              font-family: PingFang SC;
              font-weight: 400;
              color: #f2f2f2;
            }
            &:nth-child(2) {
              font-size: 0.2rem;
              font-family: PingFang SC;
              font-weight: 400;
              color: rgba(255, 255, 255, 0.7);
            }
          }
        }
      }
    }
  }
  .tab {
    .case {
      margin-top: 0.54rem;
      padding: 0 0.93rem;
      width: 100%;
      box-sizing: border-box;
      .caseimg {
        height: 3rem;
        img {
          width: 100%;
          height: 100%;
          border-radius: 0.1rem 0.1rem 0 0;
        }
      }
      .casebtm {
        padding: 0 0.15rem;
        background-color: #f8f8f8;

        p {
          &:nth-of-type(1) {
            height: 0.3rem;
            font-size: 0.26rem;
            font-weight: 600;
            color: #333333;
          }
          &:nth-of-type(2) {
            margin: 0;
            height: 0.25rem;
            display: flex;
            position: relative;
            span {
              margin-right: 0.2rem;
              font-size: 0.2rem;
              font-weight: 400;
              color: #666666;
              &:nth-of-type(3) {
                color: red;
                position: absolute;
                right: 0;
              }
            }
          }
        }
      }
      .morecase {
        margin-top: 0.5rem;
        p {
          width: 2rem;
          height: 0.48rem;
          line-height: 0.48rem;
          margin: 0 auto;
          font-size: 0.24rem;
          text-align: center;
          color: white;
          background-color: #d84141;
          border-radius: 0.1rem;
        }
      }
    }
  }
}
</style>
